package com.penngo.gui.dfdiff.view;



import com.penngo.gui.dfdiff.utils.LogUtils;

import javax.swing.*;
import java.awt.*;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.util.logging.Logger;

public abstract class RightPanel extends JPanel implements ActionListener {
    private static Logger log = LogUtils.getLogger(RightPanel.class);
    protected ProjectNode node;
    public RightPanel(ProjectNode node) {
        this.node = node;
        log.info("PanelRight=======");
        setLayout(new GridBagLayout());
//        initUi();
    }

    public void actionPerformed(ActionEvent e) {

    }

    protected abstract void initUi();

    public ProjectNode getProjectNode(){
        return node;
    }


    public void undo(){
        //getEditor().getTextArea().undoLastAction();
    }
    public void redo(){
        //getEditor().getTextArea().redoLastAction();
    }
    public void copy(){
        //getEditor().getTextArea().copy();
    }
    public void paste(){
        //getEditor().getTextArea().paste();
    }
    public void cut(){
        //getEditor().getTextArea().cut();
    }
    public void find(){

//        getEditor().getTextArea().fi
    }
}
